package com.wf.it.common.api.hystrix;

import com.wf.it.common.api.BookService;
import com.wf.it.common.entity.Book;
import com.wf.it.common.vo.Result;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceHystrixImpl implements BookService {
    @Override
    public Result<Book> addBook(int planid, String userIdCard,int money) {
        return new Result(600,null,"网络故障,请稍后操作");
    }

    @Override
    public Result<List<Book>> findListByUser(String userIdCard) {
        return new Result(600,null,"网络故障,请稍后查询");
    }

    @Override
    public Result<Book> findById(int bookid) {
        return new Result(600,null,"网络故障,请稍后查询");
    }

    @Override
    public Result cancelBook(int bookid) {
        return new Result(600,null,"网络故障,请稍后操作");
    }
}
